package com.example.proyecto;
/**
 * Rafael Mendez
 * Rafael Berganza
 * Rodrigo Avelar
 * Carlos Alvarez
 * Jose Angel Estrada
 */

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class Principal extends Activity {
	
	private String mensaje;
	private final String NAME = "scripts";

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu_principal);
        Intent intent = getIntent();
        mensaje=intent.getStringExtra(NAME);
    }
    
    public void createProgram(View view){
    	Intent intent = new Intent(this,Script.class);
    	startActivity(intent);
    }
    
    public void runProgram (View view){
    	Intent intent = new Intent(this,Ejecutar_programa.class);
    	intent.putExtra(NAME, mensaje);
    	startActivity(intent);
    }
    
    public void createMap (View view){
    	
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.menu, menu);
        return true;
    }
}
